package com.gsy.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.annotation.Nonnull;

/**
 * 分页查询基础请求
 *
 * @author hthuang
 * @date 2018年2月27日
 */
@ApiModel(value = "分页查询信息对象", description = "分页查询信息对象")
public class PageSearchRequest extends BaseRequest {

    private static final long serialVersionUID = -6177030789510405742L;
    @ApiModelProperty(name = "pageNo", value = "第几页", dataType = "Integer", example = "1", required = true)
    @Nonnull
    protected Integer pageNo = 1;

    @ApiModelProperty(name = "pageSize", value = "每页显示条数", dataType = "Integer", example = "50", required = true)
    @Nonnull
    protected Integer pageSize = 50;

    @Nonnull
    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(@Nonnull Integer pageNo) {
        this.pageNo = pageNo;
    }

    @Nonnull
    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(@Nonnull Integer pageSize) {
        this.pageSize = pageSize;
    }
}
